package com.spx.kernel.datasource.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import com.spx.kernel.KernelActivator;

/**
 * Class used to initialize default preference values.
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer
{

	/*
	 * (non-Javadoc)
	 * 
	 * @seeorg.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#
	 * initializeDefaultPreferences()
	 */
	@Override
	public void initializeDefaultPreferences()
	{
		final IPreferenceStore store = KernelActivator.getDefault().getPreferenceStore();
		store.setDefault(PreferenceConstants.P_DATASOURCE_DRIVER, "");
		store.setDefault(PreferenceConstants.P_DATASOURCE_URL, "choice2");
		store.setDefault(PreferenceConstants.P_DATASOURCE_USER, "root");
		store.setDefault(PreferenceConstants.P_DATASOURCE_PASSWORD, "");
		store.setDefault(PreferenceConstants.P_DATASOURCE_REBUILD, false);

	}

}
